﻿using System;

namespace BCC.Model
{
    /// <summary>
    /// 标记为key   以及 生成简单sql语句 
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
   public class KeyAttribute:Attribute
    {
        private string fieldname;
        public string Fieldname {
            get {
                return this.fieldname;
            }
        }

        public KeyAttribute(string yourfieldname) {
            this.fieldname = yourfieldname;
        }
    }
}
